<?php

class FormsController extends FormController
{

  protected function initialize()
  {
    parent::initialize();

    $select = new FormElement_Select('form_select', 'Select');
    $select->options = array('Y' => 'Lorem ipsum dolor', 'N' => 'Sed ut perspiciatis');

    $images = new FormElement_Images('form_id', 'Images');
    $images->foreignKey = 'image_form_id';
    $images->primaryKey = 'image_id';
    $images->table = 'forms_images';

    $this->Form->addElement(new FormElement_Text('form_text', 'Text'));
    $this->Form->addElement(new FormElement_Textarea('form_textarea', 'Textarea'));
    $this->Form->addElement(new FormElement_Password('form_password', 'Password'));
    $this->Form->addElement($select);
    $this->Form->addElement(new FormElement_Position('form_position', 'Position'));
    //$this->Form->addElement($images);
    $this->Form->addElement(new FormElement_Image('form_image', 'Image'));
  }

}
